class Drill {
  int x, y; // Dado em mils

  Drill(int pos_x, int pos_y) {
    this.x = pos_x;
    this.y = pos_y;
  }

  //  void Draw() {
  //    switch(this.tool) {
  //    case 0:
  //      stroke(0,255,0);
  //      strokeWeight(1);
  //      line(x-5,y-5,x+5,y+5);
  //      line(x+5,y-5,x-5,y+5);
  //      break;
  //    }
  //  }
}

class Tool {
  int id;
  float diam, length; //dado em Inchs
  ArrayList drills = new ArrayList();

  Tool(int i, float d) {
    this.id = i;
    this.diam = d;
  }

  void addDrill(int pX, int pY) {
    drills.add(new Drill(pX, pY));
  }

  void setLength(float l) {
    this.length = l;
  }
  
  void listDrills(){
  for(int i=0; i < drills.size();i++){
    Drill pdr = (Drill) drills.get(i);
    print("Indice do furo: "); print(i);
    print(" X: ");print(pdr.x);print(" Y: ");println(pdr.y);
  }
  }
}




